package homework.oo1;

public class CarTest {
    public static void main(String[] args) {
        Car bmw = new Car();
        bmw.brand="宝马";
        bmw.color="黑色";
        bmw.price=10;
        bmw.start();
        bmw.run();
        bmw.stop();

        Car bs = new Car("奔驰","灰色",20);
        bs.start();
        bs.run();
        bs.stop();

        Car xm = new Car("小米","湖蓝色",30);
        xm.start();
        xm.run();
        xm.stop();
    }
}
